%returns a truecolor image from a xyzrgb column matrix
function [truecolorImage] = kinect2rgb(xyzrgbImage)

truecolorImage = zeros(480,640,3,'uint8');

truecolorImage = uint8(reshape(xyzrgbImage(:,4:6),640,480,3));
truecolorImage = permute(truecolorImage,[2 1 3]);
%imshow(truecolorImage);

end